package com.mask.ucenter.client;

import com.mask.roll.common.util.RollResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author hx
 * @since 2021/10/27 5:58 下午
 */

@FeignClient(name = "service-sms")
@Component
public interface SmsClient {

    /**
     * 调用sms服务 校验验证码
     * @param phone
     * @param code
     * @return
     */
    @PostMapping("/sms/check/code")
    RollResponse checkCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
